package com.admin.controller.admin.comment;

import com.system.entity.comment.Comment;
import com.system.response.PageDto;
import com.system.response.Result;
import com.system.service.comment.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Classname CommentController
 * @Date 2023/10/8 9:51
 * @Created ZFC
 */
@RestController
@RequestMapping("/sys/comment")
public class CommentController {
    @Autowired
    private CommentService commentService;

    @GetMapping("/limit")
    public Result limit(PageDto pageDto){
        return commentService.limit(pageDto);
    }

    @PostMapping("/issue")
    public Result issueComment(@RequestBody Comment comment){
        return commentService.issueComment(comment);
    }
}
